package com.gp.library.utils;

import android.os.SystemClock;

public final class ClickUtils {
    private static long sLastClickTime;

    public static boolean canClick() {
        long curTime = SystemClock.uptimeMillis();
        if (curTime - sLastClickTime < 500) {
            return false;
        } else {
            sLastClickTime = curTime;
            return true;
        }
    }
}